package com.yc;

import dev.langchain4j.community.model.dashscope.WanxImageModel;
import dev.langchain4j.data.image.Image;
import dev.langchain4j.model.output.Response;

import java.awt.*;

public class _03_Qwen_text2Image {
    public static void main(String[] args) {
        WanxImageModel wanxImageModel = WanxImageModel.builder()
                .apiKey(System.getenv("AlI_API_KEY"))
                .modelName("wanx2.1-t2i-turbo")
                .build();
        Response<Image> response = wanxImageModel.generate("请生成一个中国的城市地图");
        System.out.println(response);
    }
}
